import request from "@/utils/request.js";

// 校验个人申报信息
export function checkReserveInfo(idCard) {
    return request({
        url: '/employee/reserve/' + idCard,
        method: 'get'
    })
}

// 校验单位申报信息
export function checkUnitReserveInfo(socialCreditCode) {
    return request({
        url: '/employee/reserve/unit/' + socialCreditCode,
        method: 'get'
    })
}

// 新增个人预约信息
export function addPersonReserve(data) {
    return request({
        url: '/employee/reserve/addPerson',
        method: 'post',
        data: data
    })
}

// 新增单位[人员]预约信息
export function addUnitReserve(data) {
    return request({
        url: '/employee/reserve/addUnitPerson',
        method: 'post',
        data: data
    })
}